Include unistd.h only if HAVE_UNISTD_H.
authorRichard M. Stallman <rms@gnu.org>
Thu, 12 Jul 2007 01:41:32 +0000 (01:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 12 Jul 2007 01:41:32 +0000 (01:41 +0000)
src/term.c

index 41ccfb0dd1f10f4daea1ea70cd79d42968fb19b5..b88448fc446c72bb30784a23041ff379f26f6fc1 100644 (file)
@@ -25,7 +25,9 @@ Boston, MA 02110-1301, USA.  */
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #include "termchar.h"
 #include "termopts.h"